#include<iostream>

int main(){

    float a = {2.34e10};
    float b = a + 10;                     
    std::cout<<a<<std::endl;
    std::cout<<b<<std::endl;
    if(a == b){                                  // 发现a和b相等，IEEE754
        std::cout<<"a == b"<<std::endl;
    }
    // float -> int
    int c = 2.34e+12f;
    std::cout<<"(float to int)result: "<<c<<",sizeof c="<<sizeof c<<std::endl;

    // 两个char相加赋值给int会将char先转换为int再进行计算
    char d1 = 127;
    char d2 = 10;
    int d3 = d1+d2;
    std::cout<<"d3: "<<d3<<std::endl;

    return 0;
}